home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / misc / bgui12.lha / include / libraries / bgui.i < prev   
Text File  |  1995-09-09  |  38KB  |  1,288 lines

  1.     IFND    LIBRARIES_BGUI_I
  2. LIBRARIES_BGUI_I    SET    1
  3. **
  4. **    $VER: libraries/bgui.i 39.22 (9.9.95)
  5. **    ASM header for the bgui.library.
  6. **
  7. **    bgui.library structures and constants.
  8. **
  9. **    (C) Copyright 1993-1995 Jaba Development.
  10. **    (C) Copyright 1993-1995 Jan van den Baard.
  11. **    All Rights Reserved.
  12. **
  13.  
  14.     IFND    __m68
  15.  
  16.     IFND    EXEC_TYPES_I
  17.     INCLUDE "exec/types.i"
  18.     ENDC
  19.  
  20.     IFND    INTUITION_CLASSES_I
  21.     INCLUDE "intuition/classes.i"
  22.     ENDC
  23.  
  24.     IFND    INTUITION_CLASSUSR_I
  25.     INCLUDE "intuition/classusr.i"
  26.     ENDC
  27.  
  28.     IFND    INTUITION_IMAGECLASS_I
  29.     INCLUDE "intuition/imageclass.i"
  30.     ENDC
  31.  
  32.     IFND    INTUITION_GADGETCLASS_I
  33.     INCLUDE "intuition/gadgetclass.i"
  34.     ENDC
  35.  
  36.     IFND    INTUITION_CGHOOKS_I
  37.     INCLUDE "intuition/cghooks.i"
  38.     ENDC
  39.  
  40.     IFND    LIBRARIES_COMMODITIES_I
  41.     INCLUDE "libraries/commodities.i"
  42.     ENDC
  43.  
  44.     IFND    LIBRARIES_GADTOOLS_I
  45.     INCLUDE "libraries/gadtools.i"
  46.     ENDC
  47.  
  48.     IFND UTILITY_TAGITEM_I
  49.     INCLUDE "utility/tagitem.i"
  50.     ENDC
  51.  
  52.     ENDC    * _m68
  53.  
  54. *****************************************************************************
  55. **
  56. **    The attribute definitions in this header are all followed by
  57. **    a small comment. This comment can contain the following things:
  58. **
  59. **    I     - Attribute can be set with OM_NEW
  60. **    S     - Attribute can be set with OM_SET
  61. **    G     - Attribute can be read with OM_GET
  62. **    N     - Setting this attribute triggers a notification.
  63. **    U     - Attribute can be set with OM_UPDATE.
  64. **    PRIVATE! - Like it says: Private. Do not use this attribute.
  65. **
  66.  
  67. *****************************************************************************
  68. **
  69. **    Miscellanious library definitions.
  70. **
  71. BGUINAME    MACRO
  72.         DC.B    'bgui.library',0
  73.         ENDM
  74.  
  75. BGUIVERSION    EQU    37
  76.  
  77. * Added to avoid problems with multiple defines.
  78.  
  79.    STRUCTURE    bguiMethodID,0
  80.     ULONG    bmi_MethodID
  81.     LABEL    MethodID_SIZEOF
  82.  
  83. ******************************************************************************
  84. **
  85. **    BGUI_GetClassPtr() and BGUI_NewObjectA() class ID's.
  86. **
  87. BGUI_LABEL_IMAGE    EQU    0
  88. BGUI_FRAME_IMAGE    EQU    1
  89. BGUI_VECTOR_IMAGE    EQU    2
  90. ** 3 until 10 reserved. **
  91. BGUI_BASE_GADGET    EQU    11
  92. BGUI_GROUP_GADGET    EQU    12
  93. BGUI_BUTTON_GADGET    EQU    13
  94. BGUI_CYCLE_GADGET    EQU    14
  95. BGUI_CHECKBOX_GADGET    EQU    15
  96. BGUI_INFO_GADGET    EQU    16
  97. BGUI_STRING_GADGET    EQU    17
  98. BGUI_PROP_GADGET    EQU    18
  99. BGUI_INDICATOR_GADGET    EQU    19
  100. ** 20 is reserved. **
  101. BGUI_PROGRESS_GADGET    EQU    21
  102. BGUI_SLIDER_GADGET    EQU    22
  103. BGUI_LISTVIEW_GADGET    EQU    23
  104. BGUI_MX_GADGET        EQU    24
  105. BGUI_PAGE_GADGET    EQU    25
  106. BGUI_EXTERNAL_GADGET    EQU    26
  107. BGUI_SEPERATOR_GADGET    EQU    27
  108. ** 28 until 39 reserved. **
  109. BGUI_WINDOW_OBJECT    EQU    40
  110. BGUI_FILEREQ_OBJECT    EQU    41
  111. BGUI_COMMODITY_OBJECT    EQU    42
  112.  
  113. ** Typo
  114. BGUI_SEPARATOR_GADGET    EQU    27
  115.  
  116. ******************************************************************************
  117. **
  118. **    BGUI requester definitions.
  119. **
  120.    STRUCTURE    bguiRequest,0
  121.     ULONG    br_Flags     ; See below.
  122.     APTR    br_Title     ; Requester title.
  123.     APTR    br_GadgetFormat  ; Gadget labels.
  124.     APTR    br_TextFormat     ; Body text format.
  125.     UWORD    br_ReqPos     ; Requester position.
  126.     APTR    br_TextAttr     ; Requester font.
  127.     UBYTE    br_Underscore     ; Underscore indicator.
  128.     STRUCT    br_Reserved0,3     ; Set to 0!
  129.     APTR    br_Screen     ; Requester screen.
  130.     STRUCT    br_Reserved1,5*4 ; Set to 0!
  131.    LABEL bguiRequest_SIZEOF
  132.  
  133. BREQF_CENTERWINDOW    EQU    $0001    ; Center requester on the window.
  134. BREQF_LOCKWINDOW    EQU    $0002    ; Lock the parent window.
  135. BREQF_NO_PATTERN    EQU    $0004    ; Don't use back-fill pattern.
  136. BREQF_XEN_BUTTONS    EQU    $0008    ; Use XEN style buttons.
  137. BREQF_AUTO_ASPECT    EQU    $0010    ; Aspect ratio dependant look.
  138. BREQF_FAST_KEYS         EQU    $0020    ; Return/Esc hotkeys.
  139.  
  140. ******************************************************************************
  141. **
  142. **    Tag and method bases.
  143. **
  144. BGUI_TB         EQU    TAG_USER+$000F0000
  145. BGUI_MB         EQU    $000F0000
  146.  
  147. ******************************************************************************
  148. **
  149. **    "frameclass" - BOOPSI framing image.
  150. **
  151. FRM_Type        EQU    BGUI_TB+1    ; ISG--
  152. FRM_CustomHook        EQU    BGUI_TB+2    ; ISG--
  153. FRM_BackFillHook    EQU    BGUI_TB+3    ; ISG--
  154. FRM_Title        EQU    BGUI_TB+4    ; ISG--
  155. FRM_TextAttr        EQU    BGUI_TB+5    ; ISG--
  156. FRM_Flags        EQU    BGUI_TB+6    ; ISG--
  157. FRM_FrameWidth        EQU    BGUI_TB+7    ; --G--
  158. FRM_FrameHeight         EQU    BGUI_TB+8    ; --G--
  159. FRM_BackFill        EQU    BGUI_TB+9    ; ISG--
  160. FRM_EdgesOnly        EQU    BGUI_TB+10    ; ISG--
  161. FRM_Recessed        EQU    BGUI_TB+11    ; ISG--
  162. FRM_CenterTitle         EQU    BGUI_TB+12    ; ISG--
  163. FRM_HighlightTitle    EQU    BGUI_TB+13    ; ISG--
  164. FRM_ThinFrame        EQU    BGUI_TB+14    ; ISG--
  165. FRM_BackPen        EQU    BGUI_TB+15    ; ISG--           V39
  166. FRM_SelectedBackPen    EQU    BGUI_TB+16    ; ISG--           V39
  167. FRM_BackDriPen        EQU    BGUI_TB+17    ; ISG--           V39
  168. FRM_SelectedBackDriPen    EQU    BGUI_TB+18    ; ISG--           V39
  169.  
  170. ** BGUI_TB+19 until BGUI_TB+80 reserved
  171.  
  172. ** Back fill types **
  173. STANDARD_FILL        EQU    0
  174. SHINE_RASTER        EQU    1
  175. SHADOW_RASTER        EQU    2
  176. SHINE_SHADOW_RASTER    EQU    3
  177. FILL_RASTER        EQU    4
  178. SHINE_FILL_RASTER    EQU    5
  179. SHADOW_FILL_RASTER    EQU    6
  180. SHINE_BLOCK        EQU    7
  181. SHADOW_BLOCK        EQU    8
  182.  
  183. ** Flags **
  184. FRF_EDGES_ONLY        EQU    $0001
  185. FRF_RECESSED        EQU    $0002
  186. FRF_CENTER_TITLE    EQU    $0004
  187. FRF_HIGHLIGHT_TITLE    EQU    $0008
  188. FRF_THIN_FRAME        EQU    $0010
  189.  
  190. ** Frame types **
  191. FRTYPE_CUSTOM        EQU    0
  192. FRTYPE_BUTTON        EQU    1
  193. FRTYPE_RIDGE        EQU    2
  194. FRTYPE_DROPBOX        EQU    3
  195. FRTYPE_NEXT        EQU    4
  196. FRTYPE_RADIOBUTTON    EQU    5
  197. FRTYPE_XEN_BUTTON    EQU    6
  198.  
  199. **
  200. **    FRM_RENDER:
  201. **
  202. **    The message packet sent to both the FRM_CustomHook
  203. **    and FRM_BackFillHook routines. Note that this
  204. **    structure is READ-ONLY!
  205. **
  206. **    The hook is called as follows:
  207. **
  208. **        lea    hook,a0         * 'STRUCTURE Hook' pointer
  209. **        lea    image_object,a2 * Object pointer
  210. **        lea    fdraw,a1    * FrameDrawMsg pointer
  211. **        jsr    hookFunc    * Call hook function
  212. **        tst.l    d0        * return code in D0
  213. **
  214. FRM_RENDER    EQU    1    ; Render yourself
  215.  
  216.    STRUCTURE    FrameDrawMsg,0
  217.     ULONG    fdm_MethodID    ; FRM_RENDER
  218.     APTR    fdm_RPort    ; RastPort ready for rendering
  219.     APTR    fdm_DrawInfo    ; All you need to render
  220.     APTR    fdm_Bounds    ; Rendering bounds.
  221.     UWORD    fdm_State    ; See "intuition/imageclass.h"
  222.    LABEL FrameDrawMsg_SIZEOF
  223.  
  224. **
  225. **    FRM_THICKNESS:
  226. **
  227. **    The message packet sent to the FRM_Custom hook.
  228. **    This structure is READ-ONLY!
  229. **
  230. **    The hook is called as follows:
  231. **
  232. **        lea    hook,a0         * 'STRUCTURE Hook' pointer
  233. **        lea    image_object,a2 * Object pointer
  234. **        lea    thick,a1    * ThicknessMsg pointer
  235. **        jsr    hookFunc    * Call hook function
  236. **        tst.l    d0        * return code in D0
  237. **
  238. FRM_THICKNESS    EQU    2    ; Give the frame thickness.
  239.  
  240.    STRUCTURE    ThicknessMsg,0
  241.     ULONG    tm_MethodID        ; FRM_THICKNESS
  242.     UBYTE    tm_ThicknessHorizontal    ; Storage for horizontal
  243.     UBYTE    tm_ThicknessVertical    ; Storage for vertical
  244.     WORD    tm_Thin                 ; Added in V38!
  245.    LABEL    ThicknessMsg_SIZEOF
  246.  
  247. ** Possible hook return codes. **
  248. FRC_OK        EQU    0    ; OK
  249. FRC_UNKNOWN    EQU    1    ; Unknow method
  250.  
  251. ******************************************************************************
  252. **
  253. **    "labelclass" - BOOPSI labeling image.
  254. **
  255. LAB_TextAttr        EQU    BGUI_TB+81    ; ISG--
  256. LAB_Style        EQU    BGUI_TB+82    ; ISG--
  257. LAB_Underscore        EQU    BGUI_TB+83    ; ISG--
  258. LAB_Place        EQU    BGUI_TB+84    ; ISG--
  259. LAB_Label        EQU    BGUI_TB+85    ; ISG--
  260. LAB_Flags        EQU    BGUI_TB+86    ; ISG--
  261. LAB_Highlight        EQU    BGUI_TB+87    ; ISG--
  262. LAB_HighUScore        EQU    BGUI_TB+88    ; ISG--
  263. LAB_Pen                 EQU    BGUI_TB+89    ; ISG--           V39
  264. LAB_SelectedPen         EQU    BGUI_TB+90    ; ISG--           V39
  265. LAB_DriPen        EQU    BGUI_TB+91    ; ISG--           V39
  266. LAB_SelectedDriPen    EQU    BGUI_TB+92    ; ISG--           V39
  267.  
  268. ** BGUI_TB+93 until BGUI_TB+160 reserved
  269.  
  270. ** Flags **
  271. LABF_HIGHLIGHT        EQU    $0001    ; Highlight label
  272. LABF_HIGH_USCORE    EQU    $0002    ; Highlight underscoring
  273.  
  274. ** Label placement **
  275. PLACE_IN    EQU    0
  276. PLACE_LEFT    EQU    1
  277. PLACE_RIGHT    EQU    2
  278. PLACE_ABOVE    EQU    3
  279. PLACE_BELOW    EQU    4
  280.  
  281. ** New methods **
  282. **
  283. **    The IM_EXTENT method is used to find out how many
  284. **    pixels the label extents the relative hitbox in
  285. **    either direction. Normally this method is called
  286. **    by the baseclass.
  287. **
  288. IM_EXTENT    EQU    BGUI_MB+1
  289.  
  290.    STRUCTURE    impExtent,MethodID_SIZEOF  ; IM_EXTENT
  291.     APTR    impex_RPort        ; RastPort
  292.     APTR    impex_Extent        ; Storage for extentions.
  293.     UWORD    impex_LabelSizeWidth    ; Storage width in pixels
  294.     UWORD    impex_LabelSizeHeight    ; Storage height in pixels
  295.     UWORD    impex_Flags        ; See below.
  296.    LABEL    impExtent_SIZEOF
  297.  
  298. EXTF_MAXIMUM    EQU    $0001    ; Request maximum extensions.
  299.  
  300. ** BGUI_MB+2 until BGUI_MB+40 reserved
  301.  
  302. ******************************************************************************
  303. **
  304. **    "vectorclass" - BOOPSI scalable vector image.
  305. **
  306. **    Based on an idea found in the ObjectiveGadTools.library
  307. **    by Davide Massarenti.
  308. **
  309. VIT_VectorArray EQU    BGUI_TB+161    ; ISG--
  310. VIT_BuiltIn    EQU    BGUI_TB+162    ; ISG--
  311. VIT_Pen         EQU    BGUI_TB+163    ; ISG--
  312. VIT_DriPen    EQU    BGUI_TB+164    ; ISG--
  313.  
  314. ** BGUI_TB+165 until BGUI_TB+240 reserved.
  315.  
  316. **
  317. **    Command structure which can contain
  318. **    coordinates, data and command flags.
  319. **
  320.    STRUCTURE    VectorItem,0
  321.     WORD    vi_x        ; X coordinate or data
  322.     WORD    vi_y        ; Y coordinate
  323.     ULONG    vi_Flags    ; See below
  324.    LABEL    VectorItem_SIZEOF
  325.  
  326. ** Flags **
  327. VIF_MOVE    EQU    $00000001    ; Move to vc_x, vc_y
  328. VIF_DRAW    EQU    $00000002    ; Draw to vc_x, vc_y
  329. VIF_AREASTART    EQU    $00000004    ; Start AreaFill at vc_x, vc_y
  330. VIF_AREAEND    EQU    $00000008    ; End AreaFill at vc_x, vc_y
  331. VIF_XRELRIGHT    EQU    $00000010    ; vc_x relative to right edge
  332. VIF_YRELBOTTOM    EQU    $00000020    ; vc_y relative to bottom edge
  333. VIF_SHADOWPEN    EQU    $00000040    ; switch to SHADOWPEN, Move/Draw
  334. VIF_SHINEPEN    EQU    $00000080    ; switch to SHINEPEN, Move/Draw
  335. VIF_FILLPEN    EQU    $00000100    ; switch to FILLPEN, Move/Draw
  336. VIF_TEXTPEN    EQU    $00000200    ; switch to TEXTPEN, Move/Draw
  337. VIF_COLOR    EQU    $00000400    ; switch to color in vc_x
  338. VIF_LASTITEM    EQU    $00000800    ; last element of the element list
  339. VIF_SCALE    EQU    $00001000    ; X & Y are design width & height
  340. VIF_DRIPEN    EQU    $00002000    ; switch to dripen vc_x
  341. VIF_AOLPEN    EQU    $00004000    ; set area outline pen vc_x
  342. VIF_AOLDRIPEN    EQU    $00008000    ; set area outline dripen vc_x
  343. VIF_ENDOPEN    EQU    $00010000    ; end area outline pen
  344.  
  345. ** Built-in images. **
  346. BUILTIN_GETPATH         EQU    1
  347. BUILTIN_GETFILE         EQU    2
  348. BUILTIN_CHECKMARK    EQU    3
  349. BUILTIN_POPUP        EQU    4
  350. BUILTIN_ARROW_UP    EQU    5
  351. BUILTIN_ARROW_DOWN    EQU    6
  352. BUILTIN_ARROW_LEFT    EQU    7
  353. BUILTIN_ARROW_RIGHT    EQU    8
  354.  
  355. ** Design width and heights of the built-in images. **
  356. GETPATH_WIDTH        EQU    20
  357. GETPATH_HEIGHT        EQU    14
  358. GETFILE_WIDTH        EQU    20
  359. GETFILE_HEIGHT        EQU    14
  360. CHECKMARK_WIDTH         EQU    26
  361. CHECKMARK_HEIGHT    EQU    11
  362. POPUP_WIDTH        EQU    15
  363. POPUP_HEIGHT        EQU    13
  364. ARROW_UP_WIDTH        EQU    16
  365. ARROW_UP_HEIGHT         EQU    9
  366. ARROW_DOWN_WIDTH    EQU    16
  367. ARROW_DOWN_HEIGHT    EQU    9
  368. ARROW_LEFT_WIDTH    EQU    10
  369. ARROW_LEFT_HEIGHT    EQU    12
  370. ARROW_RIGHT_WIDTH    EQU    10
  371. ARROW_RIGHT_HEIGHT    EQU    12
  372.  
  373. ******************************************************************************
  374. **
  375. **    "baseclass" - BOOPSI base gadget.
  376. **
  377. **    This is a very important BGUI gadget class. All other gadget classes
  378. **    are sub-classed from this class. It will handle stuff like online
  379. **    help, notification, labels and frames etc. If you want to write a
  380. **    gadget class for BGUI be sure to subclass it from this class. That
  381. **    way your class will automatically inherit the same features.
  382. **
  383. BT_HelpFile    EQU    BGUI_TB+241    ; IS---
  384. BT_HelpNode    EQU    BGUI_TB+242    ; IS---
  385. BT_HelpLine    EQU    BGUI_TB+243    ; IS---
  386. BT_Inhibit    EQU    BGUI_TB+244    ; --G--
  387. BT_HitBox    EQU    BGUI_TB+245    ; --G--
  388. BT_LabelObject    EQU    BGUI_TB+246    ; -SG--
  389. BT_FrameObject    EQU    BGUI_TB+247    ; -SG--
  390. BT_TextAttr    EQU    BGUI_TB+248    ; -SG--
  391. BT_NoRecessed    EQU    BGUI_TB+249    ; -S---
  392. BT_LabelClick    EQU    BGUI_TB+250    ; IS---
  393. BT_HelpText    EQU    BGUI_TB+251    ; IS---
  394.  
  395. ** BGUI_TB+252 until BGUI_TB+320 reserved.
  396.  
  397. ** New methods **
  398. BASE_ADDMAP    EQU    BGUI_MB+41
  399.  
  400. ** Add an object to the maplist notification list. **
  401.    STRUCTURE    bmAddMap,MethodID_SIZEOF
  402.     APTR    bam_Object
  403.     APTR    bam_MapList
  404.    LABEL    bmAddMap_SIZEOF
  405.  
  406. BASE_ADDCONDITIONAL    EQU    BGUI_MB+42
  407.  
  408. ** Add an object to the conditional notification list. **
  409.    STRUCTURE    bmAddConditional,MethodID_SIZEOF
  410.     APTR    bac_Object
  411.     STRUCT    bac_Condition,ti_SIZEOF
  412.     STRUCT    bac_TRUE,ti_SIZEOF
  413.     STRUCT    bac_FALSE,ti_SIZEOF
  414.    LABEL    bmAddConditional_SIZEOF
  415.  
  416. BASE_ADDMETHOD    EQU    BGUI_MB+43
  417.  
  418. ** Add an object to the method notification list. **
  419.    STRUCTURE    bmAddMethod,MethodID_SIZEOF
  420.     APTR    bamtd_Object
  421.     ULONG    bamtd_Flags
  422.     ULONG    bamtd_Size
  423.     ULONG    bamtd_MethodID
  424.    LABEL    bmAddMethod_SIZEOF
  425.  
  426. BAMF_NO_GINFO        EQU    $0001    ; Do not send GadgetInfo.
  427. BAMF_NO_INTERIM         EQU    $0002    ; Skip interim messages.
  428.  
  429. BASE_REMMAP        EQU    BGUI_MB+44
  430. BASE_REMCONDITIONAL    EQU    BGUI_MB+45
  431. BASE_REMMETHOD        EQU    BGUI_MB+46
  432.  
  433. ** Remove an object from a notification list. **
  434.    STRUCTURE    bmRemove,MethodID_SIZEOF
  435.     APTR    bar_Object
  436.    LABEL    bmRemove_SIZEOF
  437.  
  438. BASE_SHOWHELP        EQU    BGUI_MB+47
  439.  
  440. ** Show attached online-help. **
  441.    STRUCTURE    bmShowHelp,MethodID_SIZEOF
  442.     APTR    bsh_Window
  443.     APTR    bsh_Requester
  444.     WORD    bsh_MouseX
  445.     WORD    bsh_MouseY
  446.    LABEL    bmShowHelp_SIZEOF
  447.  
  448. BMHELP_OK    EQU    0    ; OK, no problems.
  449. BMHELP_NOT_ME    EQU    1    ; Mouse not over the object.
  450. BMHELP_FAILURE    EQU    2    ; Showing failed.
  451.  
  452. **
  453. **    The following three methods are used internally to
  454. **    perform infinite-loop checking. Do not use them.
  455. **
  456. BASE_SETLOOP    EQU    BGUI_MB+48
  457. BASE_CLEARLOOP    EQU    BGUI_MB+49
  458. BASE_CHECKLOOP    EQU    BGUI_MB+50
  459.  
  460. ** PRIVATE! Hands off! **
  461. BASE_LEFTEXT    EQU    BGUI_MB+51
  462.  
  463.    STRUCTURE    bmLeftExt,MethodID_SIZEOF
  464.     APTR    bmle_RPort
  465.     UWORD    bmle_Extention
  466.    LABEL    bmLeftExt_SIZEOF
  467.  
  468. BASE_ADDHOOK    EQU    BGUI_MB+52
  469.  
  470. ** Add a hook to the hook-notification list. **
  471.    STRUCTURE    bmAddHook,MethodID_SIZEOF
  472.     APTR    bah_Hook
  473.    LABEL    bahAddHook_SIZEOF
  474.  
  475. ** Remove a hook from the hook-notification list.
  476. BASE_REMHOOK    EQU    BGUI_MB+53
  477.  
  478. ** BGUI_MB+54 until BGUI_MB+80 reserved.
  479.  
  480. ******************************************************************************
  481. **
  482. **    "groupclass" - BOOPSI group gadget.
  483. **
  484. **    This class is the actual bgui.library layout engine. It will layout
  485. **    all members in a specific area. Two group types are available,
  486. **    horizontal and vertical groups.
  487. **
  488. GROUP_Style        EQU    BGUI_TB+321    ; I----
  489. GROUP_Spacing        EQU    BGUI_TB+322    ; I----
  490. GROUP_HorizOffset    EQU    BGUI_TB+323    ; I----
  491. GROUP_VertOffset    EQU    BGUI_TB+324    ; I----
  492. GROUP_LeftOffset    EQU    BGUI_TB+325    ; I----
  493. GROUP_TopOffset         EQU    BGUI_TB+326    ; I----
  494. GROUP_RightOffset    EQU    BGUI_TB+327    ; I----
  495. GROUP_BottomOffset    EQU    BGUI_TB+328    ; I----
  496. GROUP_Member        EQU    BGUI_TB+329    ; I----
  497. GROUP_SpaceObject    EQU    BGUI_TB+330    ; I----
  498. GROUP_BackFill        EQU    BGUI_TB+331    ; I----
  499. GROUP_EqualWidth    EQU    BGUI_TB+332    ; I----
  500. GROUP_EqualHeight    EQU    BGUI_TB+333    ; I----
  501. GROUP_Inverted        EQU    BGUI_TB+334    ; I----
  502.  
  503. ** BGUI_TB+335 until BGUI_TB+380 reserved.
  504.  
  505. ** Object layout attributes. **
  506. LGO_FixWidth        EQU    BGUI_TB+381
  507. LGO_FixHeight        EQU    BGUI_TB+382
  508. LGO_Weight        EQU    BGUI_TB+383
  509. LGO_FixMinWidth         EQU    BGUI_TB+384
  510. LGO_FixMinHeight    EQU    BGUI_TB+385
  511. LGO_Align        EQU    BGUI_TB+386
  512. LGO_NoAlign        EQU    BGUI_TB+387            ; V38
  513.  
  514. ** BGUI_TB+388 until BGUI_TB+400 reserved.
  515.  
  516. ** Default object weight. **
  517. DEFAULT_WEIGHT    EQU    50
  518.  
  519. ** Group styles. **
  520. GRSTYLE_HORIZONTAL    EQU    0
  521. GRSTYLE_VERTICAL    EQU    1
  522.  
  523. ** New methods. **
  524. GRM_ADDMEMBER    EQU    BGUI_MB+81
  525.  
  526. ** Add a member to the group. **
  527.    STRUCTURE    grmAddMember,MethodID_SIZEOF       ; GRM_ADDMEMBER
  528.     APTR    grma_Member            ; Object to add.
  529.     ULONG    grma_Attr            ; First of LGO attributes.
  530.    LABEL    grmAddMember_SIZEOF
  531.  
  532. GRM_REMMEMBER    EQU    BGUI_MB+82
  533.  
  534. ** Remove a member from the group. **
  535.    STRUCTURE    grmRemMember,MethodID_SIZEOF       ; GRM_REMMEMBER
  536.     APTR    grmr_Member            ; Object to remove.
  537.    LABEL    grmRemMember_SIZEOF
  538.  
  539. GRM_DIMENSIONS    EQU    BGUI_MB+83
  540.  
  541. ** Ask an object it's dimensions information. **
  542.    STRUCTURE    grmDimensions,MethodID_SIZEOF       ; GRM_DIMENSIONS
  543.     APTR    grmd_GInfo            ; Can be NULL!
  544.     APTR    grmd_RPort            ; Ready for calculations.
  545.     APTR    grmd_MinSizeWidth        ; Storage for dimensions.
  546.     APTR    grmd_MinSizeHeight        ; -
  547.     ULONG    grmd_Flags            ; See below.
  548.    LABEL    grmDimensions_SIZEOF
  549.  
  550. ** Flags **
  551. GDIMF_NO_FRAME        EQU    $0001    ; Don't take frame width/height
  552.                     ; into consideration.
  553.  
  554. GRM_ADDSPACEMEMBER    EQU    BGUI_MB+84
  555.  
  556. ** Add a weight controlled spacing member. **
  557.    STRUCTURE    grmAddSpaceMember,MethodID_SIZEOF  ; GRM_ADDSPACEMEMBER
  558.     ULONG    grms_Weight            ; Object weight.
  559.    LABEL    grmAddSpaceMember_SIZEOF
  560.  
  561. GRM_INSERTMEMBER    EQU    BGUI_MB+85
  562.  
  563.    STRUCTURE    grmInsertMember,MethodID_SIZEOF    ; GRM_INSERTMEMBER
  564.     APTR    grmi_Member            ; Object to insert
  565.     APTR    grmi_Pred            ; Insert after this member
  566.     ULONG    grmi_Attr            ; First of LGO attributes
  567.    LABEL    grmiInsertMember_SIZEOF
  568.  
  569. ** BGUI_MB+86 until BGUI_MB+120 reserved.
  570.  
  571. ******************************************************************************
  572. **
  573. **    "buttonclass" - BOOPSI button gadget.
  574. **
  575. **    GadTools style button gadget.
  576. **
  577. **    GA_Selected has been made gettable (OM_GET) for toggle-select
  578. **    buttons. (ISGNU)
  579. **
  580. BUTTON_ScaleMinWidth    EQU    BGUI_TB+401    ; PRIVATE!
  581. BUTTON_ScaleMinHeight    EQU    BGUI_TB+402    ; PRIVATE!
  582. BUTTON_Image        EQU    BGUI_TB+403    ; IS--U
  583. BUTTON_SelectedImage    EQU    BGUI_TB+404    ; IS--U
  584. BUTTON_EncloseImage    EQU    BGUI_TB+405    ; I----           V39
  585.  
  586. ** BGUI_TB+406 until BGUI_TB+480 reserved.
  587. ** BGUI_MB+121 until BGUI_MB+160 reserved.
  588.  
  589. ******************************************************************************
  590. **
  591. **    "checkboxclass" - BOOPSI checkbox gadget.
  592. **
  593. **    GadTools style checkbox gadget.
  594. **
  595. **    GA_Selected has been made gettable (OM_GET). (ISGNU)
  596. **
  597.  
  598. ** BGUI_TB+481 until BGUI_TB+560 reserved.
  599. ** BGUI_MB+161 until BGUI_MB+200 reserved.
  600.  
  601. ******************************************************************************
  602. **
  603. **    "cycleclass" - BOOPSI cycle gadget.
  604. **
  605. **    GadTools style cycle gadget.
  606. **
  607. CYC_Labels    EQU    BGUI_TB+561    ; I----
  608. CYC_Active    EQU    BGUI_TB+562    ; ISGNU
  609. CYC_Popup    EQU    BGUI_TB+563    ; I----
  610.  
  611. ** BGUI_TB+564 until BGUI_TB+640 reserved.
  612. ** BGUI_MB+201 until BGUI_MB+240 reserved.
  613.  
  614. ******************************************************************************
  615. **
  616. **    "infoclass" - BOOPSI information gadget.
  617. **
  618. **    Text gadget which supports different colors, text styles and
  619. **    text positioning.
  620. **
  621. INFO_TextFormat         EQU    BGUI_TB+641    ; IS--U
  622. INFO_Args        EQU    BGUI_TB+642    ; IS--U
  623. INFO_MinLines        EQU    BGUI_TB+643    ; I----
  624. INFO_FixTextWidth    EQU    BGUI_TB+644    ; I----
  625. INFO_HorizOffset    EQU    BGUI_TB+645    ; I----
  626. INFO_VertOffset         EQU    BGUI_TB+646    ; I----
  627.  
  628. ** Command sequences. **
  629. ISEQ_B    MACRO        ; Bold
  630.     dc.b    27,"b"
  631.     ENDM
  632. ISEQ_I    MACRO        ; Italics
  633.     dc.b    27,"i"
  634.     ENDM
  635. ISEQ_U    MACRO        ; Underlined
  636.     dc.b    27,"u"
  637.     ENDM
  638. ISEQ_N    MACRO        ; Normal
  639.     dc.b    27,"n"
  640.     ENDM
  641. ISEQ_C    MACRO        ; Centered
  642.     dc.b    27,"c"
  643.     ENDM
  644. ISEQ_R    MACRO        ; Right
  645.     dc.b    27,"r"
  646.     ENDM
  647. ISEQ_L    MACRO        ; Left
  648.     dc.b    27,"l"
  649.     ENDM
  650. ISEQ_TEXT    MACRO        ; TEXTPEN
  651.     dc.b    27,"d2"
  652.     ENDM
  653. ISEQ_SHINE    MACRO        ; SHINEPEN
  654.     dc.b    27,"d3"
  655.     ENDM
  656. ISEQ_SHADOW    MACRO        ; SHADOWPEN
  657.     dc.b    27,"d4"
  658.     ENDM
  659. ISEQ_FILL    MACRO        ; FILLPEN
  660.     dc.b    27,"d5"
  661.     ENDM
  662. ISEQ_FILLTEXT    MACRO        ; FILLTEXTPEN
  663.     dc.b    27,"d6"
  664.     ENDM
  665. ISEQ_HIGHLIGHT    MACRO        ; HIGHLIGHTPEN
  666.     dc.b    27,"d8"
  667.     ENDM
  668.  
  669. ** BGUI_TB+645 until BGUI_TB+720 reserved.
  670. ** BGUI_MB+241 until BGUI_MB+280 reserved.
  671.  
  672. ******************************************************************************
  673. **
  674. **    "listviewclass" - BOOPSI listview gadget.
  675. **
  676. **    GadTools style listview gadget.
  677. **
  678. LISTV_ResourceHook    EQU    BGUI_TB+721    ; I----
  679. LISTV_DisplayHook    EQU    BGUI_TB+722    ; I----
  680. LISTV_CompareHook    EQU    BGUI_TB+723    ; I----
  681. LISTV_Top        EQU    BGUI_TB+724    ; IS--U
  682. LISTV_ListFont        EQU    BGUI_TB+725    ; I-G--
  683. LISTV_ReadOnly        EQU    BGUI_TB+726    ; I----
  684. LISTV_MultiSelect    EQU    BGUI_TB+727    ; IS--U
  685. LISTV_EntryArray    EQU    BGUI_TB+728    ; I----
  686. LISTV_Select        EQU    BGUI_TB+729    ; -S--U
  687. LISTV_MakeVisible    EQU    BGUI_TB+730    ; -S--U
  688. LISTV_Entry        EQU    BGUI_TB+731    ; ---N-
  689. LISTV_SortEntryArray    EQU    BGUI_TB+732    ; I----
  690. LISTV_EntryNumber    EQU    BGUI_TB+733    ; ---N-
  691. LISTV_TitleHook         EQU    BGUI_TB+734    ; I----
  692. LISTV_LastClicked    EQU    BGUI_TB+735    ; --G--
  693. LISTV_ThinFrames    EQU    BGUI_TB+736    ; I----
  694. LISTV_LastClickedNum    EQU    BGUI_TB+737    ; I----           V38
  695. LISTV_NewPosition    EQU    BGUI_TB+738    ; ---N-           V38
  696. LISTV_NumEntries    EQU    BGUI_TB+739    ; --G--           V38
  697. LISTV_MinEntriesShown    EQU    BGUI_TB+740    ; I----           V38
  698. LISTV_SelectMulti    EQU    BGUI_TB+741    ; -S--U           V39
  699. LISTV_SelectNotVisible    EQU    BGUI_TB+742    ; -S--U           V39
  700. LISTV_SelectMultiNotVisible EQU BGUI_TB+743    ; -S--U           V39
  701. LISTV_MultiSelectNoShift EQU    BGUI_TB+744    ; IS--U           V39
  702. LISTV_DeSelect        EQU    BGUI_TB+745    ; -S--U           V39
  703.  
  704. ** BGUI_TB+746 until BGUI_TB+800 reserved.
  705.  
  706. **
  707. **    LISTV_Select magic numbers.
  708. **
  709. LISTV_Select_First    EQU    -1                ; V38
  710. LISTV_Select_Last    EQU    -2                ; V38
  711. LISTV_Select_Next    EQU    -3                ; V38
  712. LISTV_Select_Previous    EQU    -4                ; V38
  713. LISTV_Select_Top    EQU    -5                ; V38
  714. LISTV_Select_Page_Up    EQU    -6                ; V38
  715. LISTV_Select_Page_Down    EQU    -7                ; V38
  716. LISTV_Select_All    EQU    -8                ; V39
  717.  
  718. **
  719. **    The LISTV_ResourceHook is called as follows:
  720. **
  721. **        lea    hook,a0                 * 'STRUCTURE Hook' pointer
  722. **        lea    lv_object,a2        * Object pointer
  723. **        lea    lvResource,a1        * lvResource pointer
  724. **        jsr    hookFunc        * Call hook function
  725. **        tst.l    d0            * return code in D0
  726. **
  727.    STRUCTURE    lvResource,0
  728.     UWORD    lvr_Command
  729.     APTR    lvr_Entry
  730.    LABEL    lvResource_SIZEOF
  731.  
  732. ** LISTV_ResourceHook commands. **
  733. LVRC_MAKE    EQU    1    ; Built the entry.
  734. LVRC_KILL    EQU    2    ; Kill the entry.
  735.  
  736. **
  737. **    The LISTV_DisplayHook and the LISTV_TitleHook are called as follows:
  738. **
  739. **        lea    hook,a0                 * 'STRUCTURE Hook' pointer
  740. **        lea    lv_object,a2        * Object pointer
  741. **        lea    lvRender,a1        * lvRender pointer
  742. **        jsr    hookFunc        * Call hook function
  743. **        tst.l    d0            * return code in D0
  744. **
  745.    STRUCTURE    lvRender,0
  746.     APTR    lvren_RPort        ; RastPort to render in.
  747.     APTR    lvren_DrawInfo        ; All you need to render.
  748.     STRUCT    lvren_Bounds,ra_SIZEOF    ; Bounds to render in.
  749.     APTR    lvren_Entry        ; Entry to render.
  750.     UWORD    lvren_State        ; See below.
  751.     UWORD    lvren_Flags        ; None defined yet.
  752.    LABEL    lvRender_SIZEOF
  753.  
  754. ** Rendering states. **
  755. LVRS_NORMAL        EQU    0
  756. LVRS_SELECTED        EQU    1
  757. LVRS_NORMAL_DISABLED    EQU    2
  758. LVRS_SELECTED_DISABLED    EQU    3
  759.  
  760. **
  761. **    The LISTV_CompareHook is called as follows:
  762. **
  763. **        lea    hook,a0                 * 'STRUCTURE Hook' pointer
  764. **        lea    lv_object,a2        * Object pointer
  765. **        lea    lvCompare,a1        * lvCompare pointer
  766. **        jsr    hookFunc        * Call hook function
  767. **        tst.l    d0            * return code in D0
  768. **
  769.    STRUCTURE    lvCompare,0
  770.     APTR    lvc_EntryA    ; First entry.
  771.     APTR    lvc_EntryB    ; Second entry.
  772.    LABEL    lvCompare_SIZEOF
  773.  
  774. ** New Methods. **
  775. LVM_ADDENTRIES    EQU    BGUI_MB+281
  776.  
  777. ** Add listview entries. **
  778.    STRUCTURE    lvmAddEntries,MethodID_SIZEOF       ; LVM_ADDENTRIES
  779.     APTR    lvma_GInfo            ; GadgetInfo
  780.     APTR    lvma_Entries            ; Entries to add.
  781.     ULONG    lvma_How            ; How to add it.
  782.    LABEL    lvmAddEntries_SIZEOF
  783.  
  784. ** Where to add the entries. **
  785. LVAP_HEAD    EQU    1
  786. LVAP_TAIL    EQU    2
  787. LVAP_SORTED    EQU    3
  788.  
  789. LVM_ADDSINGLE    EQU    BGUI_MB+282
  790.  
  791. ** Add a single entry. **
  792.    STRUCTURE    lvmAddSingle,MethodID_SIZEOF       ; LVM_ADDSINGLE
  793.     APTR    lvms_GInfo            ; GadgetInfo
  794.     APTR    lvms_Entry            ; Entry to add.
  795.     ULONG    lvms_How            ; See above.
  796.     ULONG    lvms_Flags            ; See below.
  797.    LABEL    lvmAddSingle_SIZEOF
  798.  
  799. ** Flags. **
  800. LVASF_MAKEVISIBLE    EQU    $0001    ; Make entry visible.
  801. LVASF_SELECT        EQU    $0002    ; Select entry.
  802.  
  803. ** Clear the entire list. (Uses a lvmCommand structure as defined below.) **
  804. LVM_CLEAR    EQU    BGUI_MB+283
  805.  
  806. LVM_FIRSTENTRY    EQU    BGUI_MB+284
  807. LVM_LASTENTRY    EQU    BGUI_MB+285
  808. LVM_NEXTENTRY    EQU    BGUI_MB+286
  809. LVM_PREVENTRY    EQU    BGUI_MB+287
  810.  
  811. ** Get an entry. **
  812.    STRUCTURE    lvmGetEntry,MethodID_SIZEOF       ; Any of the above.
  813.     APTR    lvmg_Previous            ; Previous entry.
  814.     ULONG    lvmg_Flags            ; See below.
  815.    LABEL    lvmGetEntry_SIZEOF
  816.  
  817. LVGEF_SELECTED    EQU    $0001    ; Get selected entries.
  818.  
  819. LVM_REMENTRY    EQU    BGUI_MB+288
  820.  
  821. ** Remove an entry. **
  822.    STRUCTURE    lvmRemEntry,MethodID_SIZEOF       ; LVM_REMENTRY
  823.     APTR    lvmr_GInfo            ; GadgetInfo
  824.     APTR    lvmr_Entry            ; Entry to remove.
  825.    LABEL    lvmRemEntry_SIZEOF
  826.  
  827. LVM_REFRESH    EQU    BGUI_MB+289
  828. LVM_SORT    EQU    BGUI_MB+290
  829. LVM_LOCKLIST    EQU    BGUI_MB+291
  830. LVM_UNLOCKLIST    EQU    BGUI_MB+292
  831.  
  832. ** Refresh/Sort list. **
  833.    STRUCTURE    lvmCommand,MethodID_SIZEOF ; See above
  834.     APTR    lvmc_GInfo        ; GadgetInfo
  835.    LABEL    lvmCommand_SIZEOF
  836.  
  837. LVM_MOVE    EQU    BGUI_MB+293    ; V38
  838.  
  839. ** Move an entry in the list. **
  840.    STRUCTURE    lvmMove,MethodID_SIZEOF ; See above
  841.     APTR    lvmm_GInfo        ; GadgetInfo
  842.     APTR    lvmm_Entry        ; Entry to move or 0
  843.     ULONG    lvmm_Direction        ; Move direction
  844.    LABEL    lvmMove_SIZEOF
  845.  
  846. ** Move directions **
  847. LVMOVE_UP    EQU    0    ; Move entry up
  848. LVMOVE_DOWN    EQU    1    ; Move entry down
  849. LVMOVE_TOP    EQU    2    ; Move entry to the top
  850. LVMOVE_BOTTOM    EQU    3    ; Move entry to the bottom
  851.  
  852. LVM_REPLACE    EQU    BGUI_MB+294    ; V39
  853.  
  854. ** Replace an entry by another. **
  855.     STRUCTURE lvmReplace,MethodID_SIZEOF
  856.     APTR  lvmre_GInfo    ; GadgetInfo
  857.     APTR  lvmre_OldEntry    ; Entry to replace.
  858.     APTR  lvmre_NewEntry    ; New entry data.
  859.     LABEL     lvmReplace_SIZEOF
  860.  
  861. ** BGUI_MB+295 until BGUI_MB+320 reserved.
  862.  
  863. ******************************************************************************
  864. **
  865. **    "progressclass" - BOOPSI progression gadget.
  866. **
  867. **    Progression indicator fuel guage.
  868. **
  869. PROGRESS_Min        EQU    BGUI_TB+801    ; IS---
  870. PROGRESS_Max        EQU    BGUI_TB+802    ; IS---
  871. PROGRESS_Done        EQU    BGUI_TB+803    ; ISGNU
  872. PROGRESS_Vertical    EQU    BGUI_TB+804    ; I----
  873. PROGRESS_Divisor    EQU    BGUI_TB+805    ; I----
  874.  
  875. ** BGUI_TB+806 until BGUI_TB+880 reserved.
  876. ** BGUI_MB+321 until BGUI_MB+360 reserved.
  877.  
  878. ******************************************************************************
  879. **
  880. **    "propclass" - BOOPSI proportional gadget.
  881. **
  882. **    GadTools style scroller gadget.
  883. **
  884. PGA_Arrows        EQU    BGUI_TB+881    ; I----
  885. PGA_ArrowSize        EQU    BGUI_TB+882    ; I----
  886. PGA_DontTarget        EQU    BGUI_TB+883    ; PRIVATE!
  887. PGA_ThinFrame        EQU    BGUI_TB+884    ; I----
  888. PGA_XenFrame        EQU    BGUI_TB+885    ; I----
  889.  
  890. ** BGUI_TB+886 until BGUI_TB+960 reserved.
  891. ** BGUI_MB+361 until BGUI_MB+400 reserved.
  892.  
  893. ******************************************************************************
  894. **
  895. **    "stringclass" - BOOPSI string gadget.
  896. **
  897. **    GadTools style string/integer gadget.
  898. **
  899. STRINGA_Tabbed        EQU    BGUI_TB+961    ; PRIVATE!
  900. STRINGA_ShiftTabbed    EQU    BGUI_TB+962    ; PRIVATE!
  901. STRINGA_MinCharsVisible EQU    BGUI_TB+963    ; I----           V39
  902. STRINGA_IntegerMin    EQU    BGUI_TB+964    ; IS--U           V39
  903. STRINGA_IntegerMax    EQU    BGUI_TB+965    ; IS--U           V39
  904.  
  905. SM_FORMAT_STRING    EQU    BGUI_MB+401    ; V39
  906.  
  907. ** Format the string contents. **
  908.    STRUCTURE    smFormatString,MethodID_SIZEOF    ; SM_FORMAT_STRING
  909.     APTR    smfs_GInfo            ; GadgetInfo
  910.     APTR    smfs_FStr            ; Format string
  911.     ULONG    smfs_Arg1            ; Format arg
  912.     ; ULONG smfs_Arg2
  913.     ; ...
  914.    LABEL    smFormatString_SIZEOF
  915.  
  916. ** BGUI_TB+966 until BGUI_TB+1040 reserved.
  917. ** BGUI_MB+402 until BGUI_MB+440 reserved.
  918.  
  919. ******************************************************************************
  920. **
  921. **    RESERVED.
  922. **
  923. ** BGUI_TB+1041 until BGUI_TB+1120 reserved.
  924. ** BGUI_MB+441 until BGUI_MB+480 reserved.
  925.  
  926. ******************************************************************************
  927. **
  928. **    "pageclass" - BOOPSI paging gadget.
  929. **
  930. **    Gadget to handle pages of gadgets.
  931. **
  932. PAGE_Active        EQU    BGUI_TB+1121    ; ISGNU
  933. PAGE_Member        EQU    BGUI_TB+1122    ; I----
  934. PAGE_NoBufferRP         EQU    BGUI_TB+1123    ; I----
  935. PAGE_Inverted        EQU    BGUI_TB+1124    ; I----
  936.  
  937. ** BGUI_TB+1125 until BGUI_TB+1200 reserved.
  938. ** BGUI_MB+481 until BGUI_MB+520 reserved.
  939.  
  940. ******************************************************************************
  941. **
  942. **    "mxclass" - BOOPSI mx gadget.
  943. **
  944. **    GadTools style mx gadget.
  945. **
  946. MX_Labels        EQU    BGUI_TB+1201    ; I----
  947. MX_Active        EQU    BGUI_TB+1202    ; ISGNU
  948. MX_LabelPlace        EQU    BGUI_TB+1203    ; I----
  949. MX_DisableButton    EQU    BGUI_TB+1204    ; IS--U
  950. MX_EnableButton         EQU    BGUI_TB+1205    ; IS--U
  951. MX_TabsObject        EQU    BGUI_TB+1206    ; I----
  952. MX_TabsTextAttr         EQU    BGUI_TB+1207    ; I----
  953.  
  954. ** BGUI_TB+1208 until BGUI_TB+1280 reserved.
  955. ** BGUI_MB+521 until BGUI_MB+560 reserved.
  956.  
  957. ******************************************************************************
  958. **
  959. **    "sliderclass" - BOOPSI slider gadget.
  960. **
  961. **    GadTools style slider gadget.
  962. **
  963. SLIDER_Min        EQU    BGUI_TB+1281    ; IS--U
  964. SLIDER_Max        EQU    BGUI_TB+1282    ; IS--U
  965. SLIDER_Level        EQU    BGUI_TB+1283    ; ISGNU
  966. SLIDER_ThinFrame    EQU    BGUI_TB+1284    ; I----
  967. SLIDER_XenFrame         EQU    BGUI_TB+1285    ; I----
  968.  
  969. ** BGUI_TB+1286 until BGUI_TB+1360 reserved.
  970. ** BGUI_MB+561 until BGUI_MB+600 reserved.
  971.  
  972. ******************************************************************************
  973. **
  974. **    "indicatorclass" - BOOPSI indicator gadget.
  975. **
  976. **    Textual level indicator gadget.
  977. **
  978. INDIC_Min        EQU    BGUI_TB+1361    ; I----
  979. INDIC_Max        EQU    BGUI_TB+1362    ; I----
  980. INDIC_Level        EQU    BGUI_TB+1363    ; IS--U
  981. INDIC_FormatString    EQU    BGUI_TB+1364    ; I----
  982. INDIC_Justification    EQU    BGUI_TB+1365    ; I----
  983.  
  984. ** Justification **
  985. IDJ_LEFT        EQU    0
  986. IDJ_CENTER        EQU    1
  987. IDJ_RIGHT        EQU    2
  988.  
  989. ** BGUI_TB+1366 until BGUI_TB+1440 reserved.
  990.  
  991. ******************************************************************************
  992. **
  993. **    "externalclass" - BGUI external class interface.
  994. **
  995. EXT_Class        EQU    BGUI_TB+1441    ; I----
  996. EXT_ClassID        EQU    BGUI_TB+1442    ; I----
  997. EXT_MinWidth        EQU    BGUI_TB+1443    ; I----
  998. EXT_MinHeight        EQU    BGUI_TB+1444    ; I----
  999. EXT_TrackAttr        EQU    BGUI_TB+1445    ; I----
  1000. EXT_Object        EQU    BGUI_TB+1446    ; --G--
  1001. EXT_NoRebuild        EQU    BGUI_TB+1447    ; I----
  1002.  
  1003. ** BGUI_TB+1448 until BGUI_TB+1500 reserved.
  1004.  
  1005. *****************************************************************************
  1006. **
  1007. **    "separatorclass" - BOOPSI separator class.
  1008. **
  1009. SEP_Horiz        EQU    BGUI_TB+1501    * I----
  1010. SEP_Title        EQU    BGUI_TB+1502    * I----
  1011. SEP_Thin        EQU    BGUI_TB+1503    * I----
  1012. SEP_Highlight        EQU    BGUI_TB+1504    * I----
  1013. SEP_CenterTitle         EQU    BGUI_TB+1505    * I----
  1014. SEP_Recessed        EQU    BGUI_TB+1506    * I----           V39
  1015.  
  1016. * BGUI_TB+1507 through BGUI_TB+1760 reserved.
  1017.  
  1018. ******************************************************************************
  1019. **
  1020. **    "windowclass" - BOOPSI window class.
  1021. **
  1022. **    This class creates and maintains an intuition window.
  1023. **
  1024. WINDOW_Position         EQU    BGUI_TB+1761    ; I----
  1025. WINDOW_ScaleWidth    EQU    BGUI_TB+1762    ; I----
  1026. WINDOW_ScaleHeight    EQU    BGUI_TB+1763    ; I----
  1027. WINDOW_LockWidth    EQU    BGUI_TB+1764    ; I----
  1028. WINDOW_LockHeight    EQU    BGUI_TB+1765    ; I----
  1029. WINDOW_PosRelBox    EQU    BGUI_TB+1766    ; I----
  1030. WINDOW_Bounds        EQU    BGUI_TB+1767    ; ISG--
  1031. ** BGUI_TB+1768 until BGUI_TB+1770 reserved.
  1032. WINDOW_DragBar        EQU    BGUI_TB+1771    ; I----
  1033. WINDOW_SizeGadget    EQU    BGUI_TB+1772    ; I----
  1034. WINDOW_CloseGadget    EQU    BGUI_TB+1773    ; I----
  1035. WINDOW_DepthGadget    EQU    BGUI_TB+1774    ; I----
  1036. WINDOW_SizeBottom    EQU    BGUI_TB+1775    ; I----
  1037. WINDOW_SizeRight    EQU    BGUI_TB+1776    ; I----
  1038. WINDOW_Activate         EQU    BGUI_TB+1777    ; I----
  1039. WINDOW_RMBTrap        EQU    BGUI_TB+1778    ; I----
  1040. WINDOW_SmartRefresh    EQU    BGUI_TB+1779    ; I----
  1041. WINDOW_ReportMouse    EQU    BGUI_TB+1780    ; I----
  1042. WINDOW_Borderless    EQU    BGUI_TB+1781    ; I----           V39
  1043. WINDOW_Backdrop         EQU    BGUI_TB+1782    ; I----           V39
  1044. WINDOW_ShowTitle    EQU    BGUI_TB+1783    ; I----           V39
  1045. ** BGUI_TB+1784 until BGUI_TB+1790 reserved.
  1046. WINDOW_IDCMP        EQU    BGUI_TB+1791    ; I----
  1047. WINDOW_SharedPort    EQU    BGUI_TB+1792    ; I----
  1048. WINDOW_Title        EQU    BGUI_TB+1793    ; IS--U
  1049. WINDOW_ScreenTitle    EQU    BGUI_TB+1794    ; IS--U
  1050. WINDOW_MenuStrip    EQU    BGUI_TB+1795    ; I-G--
  1051. WINDOW_MasterGroup    EQU    BGUI_TB+1796    ; I----
  1052. WINDOW_Screen        EQU    BGUI_TB+1797    ; I----
  1053. WINDOW_PubScreenName    EQU    BGUI_TB+1798    ; I----
  1054. WINDOW_UserPort         EQU    BGUI_TB+1799    ; --G--
  1055. WINDOW_SigMask        EQU    BGUI_TB+1800    ; --G--
  1056. WINDOW_IDCMPHook    EQU    BGUI_TB+1801    ; I----
  1057. WINDOW_VerifyHook    EQU    BGUI_TB+1802    ; I----
  1058. WINDOW_IDCMPHookBits    EQU    BGUI_TB+1803    ; I----
  1059. WINDOW_VerifyHookBits    EQU    BGUI_TB+1804    ; I----
  1060. WINDOW_Font        EQU    BGUI_TB+1805    ; I----
  1061. WINDOW_FallBackFont    EQU    BGUI_TB+1806    ; I----
  1062. WINDOW_HelpFile         EQU    BGUI_TB+1807    ; IS---
  1063. WINDOW_HelpNode         EQU    BGUI_TB+1808    ; IS---
  1064. WINDOW_HelpLine         EQU    BGUI_TB+1809    ; IS---
  1065. WINDOW_AppWindow    EQU    BGUI_TB+1810    ; I----
  1066. WINDOW_AppMask        EQU    BGUI_TB+1811    ; --G--
  1067. WINDOW_UniqueID         EQU    BGUI_TB+1812    ; I----
  1068. WINDOW_Window        EQU    BGUI_TB+1813    ; --G--
  1069. WINDOW_HelpText         EQU    BGUI_TB+1814    ; IS---
  1070. WINDOW_NoBufferRP    EQU    BGUI_TB+1815    ; I----
  1071. WINDOW_AutoAspect    EQU    BGUI_TB+1816    ; I----
  1072. WINDOW_PubScreen    EQU    BGUI_TB+1817    ; IS---           V39
  1073. WINDOW_CloseOnEsc    EQU    BGUI_TB+1818    ; IS---           V39
  1074. WINDOW_ActNext        EQU    BGUI_TB+1819    ; -----           V39
  1075. WINDOW_ActPrev        EQU    BGUI_TB+1820    ; -----           V39
  1076. WINDOW_NoVerify         EQU    BGUI_TB+1821    ; -S---           V39
  1077.  
  1078. ** BGUI_TB+1822 until BGUI_TB+1860 reserved.
  1079.  
  1080. ** Possible window positions. **
  1081. POS_CENTERSCREEN    EQU    0    ; Center on the screen
  1082. POS_CENTERMOUSE         EQU    1    ; Center under the mouse
  1083. POS_TOPLEFT        EQU    2    ; Top-left of the screen
  1084.  
  1085. ** New methods **
  1086.  
  1087. WM_OPEN         EQU    BGUI_MB+601    ; Open the window
  1088. WM_CLOSE    EQU    BGUI_MB+602    ; Close the window
  1089. WM_SLEEP    EQU    BGUI_MB+603    ; Put the window to sleep
  1090. WM_WAKEUP    EQU    BGUI_MB+604    ; Wake the window up
  1091. WM_HANDLEIDCMP    EQU    BGUI_MB+605    ; Call the IDCMP handler
  1092.  
  1093. ** Pre-defined WM_HANDLEIDCMP return codes. **
  1094. WMHI_CLOSEWINDOW    EQU    $00010000    ; The close gadget was clicked
  1095. WMHI_NOMORE        EQU    $00020000    ; No more messages
  1096. WMHI_INACTIVE        EQU    $00030000    ; The window was de-activated
  1097. WMHI_ACTIVE        EQU    $00040000    ; The window was activated
  1098. WMHI_IGNORE        EQU    $FFFFFFFF    ; Like it say's: ignore
  1099.  
  1100. WM_GADGETKEY        EQU    BGUI_MB+606
  1101.  
  1102. ** Add a hotkey to a gadget. **
  1103.    STRUCTURE    wmGadgetKey,MethodID_SIZEOF       ; WM_GADGETKEY
  1104.     APTR    wmgk_Requester            ; When used in a requester
  1105.     APTR    wmgk_Object            ; Object to activate
  1106.     APTR    wmgk_Key            ; Key that triggers activ.
  1107.    LABEL    wmGadgetKey_SIZEOF
  1108.  
  1109. WM_KEYACTIVE        EQU    BGUI_MB+607
  1110. WM_KEYINPUT        EQU    BGUI_MB+608
  1111.  
  1112. ** Send with the WM_KEYACTIVE and WM_KEYINPUT methods. **
  1113.    STRUCTURE    wmKeyInput,MethodID_SIZEOF ; WM_KEYACTIVE/WM_KEYINPUT
  1114.     APTR    wmki_GInfo        ; GadgetInfo
  1115.     APTR    wmki_IEvent        ; Input event
  1116.     ULONG    wmki_ID                 ; Storage for the object ID
  1117.     APTR    wmki_Key        ; Key that triggered activation.
  1118.    LABEL    wmKeyInput_SIZEOF
  1119.  
  1120. ** Possible WM_KEYACTIVE and WM_KEYINPUT return codes. **
  1121. WMKF_MEACTIVE        EQU    0    ; Object went active.
  1122. WMKF_CANCEL        EQU    $0001    ; Key activation canceled.
  1123. WMKF_VERIFY        EQU    $0002    ; Key activation confirmed
  1124. WMKF_ACTIVATE        EQU    $0004    ; ActivateGadget() object
  1125.  
  1126. WM_KEYINACTIVE        EQU    BGUI_MB+609
  1127.  
  1128. ** De-activate a key session. **
  1129.    STRUCTURE    wmKeyInActive,MethodID_SIZEOF       ; WM_KEYINACTIVE
  1130.     APTR    wmkia_GInfo            ; GadgetInfo
  1131.    LABEL    wmKeyInActive_SIZEOF
  1132.  
  1133. WM_DISABLEMENU        EQU    BGUI_MB+610
  1134. WM_CHECKITEM        EQU    BGUI_MB+611
  1135.  
  1136. ** Disable/Enable a menu or Set/Clear a checkit item. **
  1137.    STRUCTURE    wmMenuAction,MethodID_SIZEOF       ; WM_DISABLEMENU/WM_CHECKITEM
  1138.     ULONG    wmma_MenuID            ; Menu it's ID
  1139.     ULONG    wmma_Set            ; TRUE = set, FALSE = clear
  1140.    LABEL    wmMenuAction_SIZEOF
  1141.  
  1142. WM_MENUDISABLED         EQU    BGUI_MB+612
  1143. WM_ITEMCHECKED        EQU    BGUI_MB+613
  1144.  
  1145.    STRUCTURE    wmMenuQuery,MethodID_SIZEOF       ; WM_MENUDISABLED/WM_ITEMCHECKED
  1146.     ULONG    wmmq_MenuID            ; Menu it's ID
  1147.    LABEL    wmMenuQuery_SIZEOF
  1148.  
  1149. WM_TABCYCLE_ORDER    EQU    BGUI_MB+614
  1150.  
  1151. ** Set the tab-cycling order. **
  1152.    STRUCTURE    wmTabCycleOrder,MethodID_SIZEOF    ; WM_TABCYCLE_ORDER
  1153.     APTR    wtco_Object1
  1154.     ; APTR    wtco_Object2
  1155.     ; ...
  1156.     ; NULL
  1157.    LABEL    wmTabCycleOrder_SIZEOF
  1158.  
  1159. ** Obtain the app message. **
  1160. WM_GETAPPMSG        EQU    BGUI_MB+615
  1161.  
  1162. WM_ADDUPDATE        EQU    BGUI_MB+616
  1163.  
  1164. ** Add object to the update notification list. **
  1165.    STRUCTURE    wmAddUpdate,MethodID_SIZEOF       ; WM_ADDUPDATE
  1166.     ULONG    wmau_SourceID            ; ID of source object.
  1167.     APTR    wmau_Target            ; Target object.
  1168.     APTR    wmau_MapList            ; Attribute map-list.
  1169.    LABEL    wmAddUpdate_SIZEOF
  1170.  
  1171. WM_REPORT_ID        EQU    BGUI_MB+617    ; V38
  1172.  
  1173. ** Report a return code from a IDCMP/Verify hook. **
  1174.    STRUCTURE    wmReportID,MethodID_SIZEOF    ; WM_REPORT_ID
  1175.     ULONG    wmri_ID                         ; ID to report.
  1176.     ULONG    wmri_Flags            ; See below.
  1177.    LABEL    wmReportID_SIZEOF
  1178.  
  1179. ** Flags. **
  1180. WMRIF_DOUBLE_CLICK    EQU    $0001        ; Simulate double-click.
  1181.  
  1182. ** Get the window which signalled us. **
  1183. WM_GET_SIGNAL_WINDOW    EQU    BGUI_MB+618    ; V39
  1184.  
  1185. ** BGUI_MB+619 until BGUI_MB+660 reserved.
  1186.  
  1187. ******************************************************************************
  1188. **
  1189. **    "commodityclass" - BOOPSI commodity class.
  1190. **
  1191. COMM_Name        EQU    BGUI_TB+1861    ; I----
  1192. COMM_Title        EQU    BGUI_TB+1862    ; I----
  1193. COMM_Description    EQU    BGUI_TB+1863    ; I----
  1194. COMM_Unique        EQU    BGUI_TB+1864    ; I----
  1195. COMM_Notify        EQU    BGUI_TB+1865    ; I----
  1196. COMM_ShowHide        EQU    BGUI_TB+1866    ; I----
  1197. COMM_Priority        EQU    BGUI_TB+1867    ; I----
  1198. COMM_SigMask        EQU    BGUI_TB+1868    ; --G--
  1199. COMM_ErrorCode        EQU    BGUI_TB+1869    ; --G--
  1200.  
  1201. ** BGUI_TB+1870 until BGUI_TB+1940 reserved.
  1202.  
  1203. ** New Methods. **
  1204.  
  1205. CM_ADDHOTKEY        EQU    BGUI_MB+661
  1206.  
  1207. ** Add a hot-key to the broker. **
  1208.    STRUCTURE    cmAddHotkey,MethodID_SIZEOF       ; CM_ADDHOTKEY
  1209.     APTR    cah_InputDescription        ; Key input description.
  1210.     ULONG    cah_KeyID            ; Key command ID.
  1211.     ULONG    cah_Flags            ; See below.
  1212.    LABEL    cmAddHotkey_SIZEOF
  1213.  
  1214. ** Flags. **
  1215. CAHF_DISABLED    EQU    $0001    ; The key is added but won't work.
  1216.  
  1217. CM_REMHOTKEY        EQU    BGUI_MB+662    ; Remove a key.
  1218. CM_DISABLEHOTKEY    EQU    BGUI_MB+663    ; Disable a key.
  1219. CM_ENABLEHOTKEY         EQU    BGUI_MB+664    ; Enable a key.
  1220.  
  1221. ** Do a key command. **
  1222.    STRUCTURE    cmDoKeyCommand,MethodID_SIZEOF       ; See above.
  1223.     ULONG    cdkc_KeyID            ; ID of the key.
  1224.    LABEL    cmDoKeyCommand_SIZEOF
  1225.  
  1226. CM_ENABLEBROKER         EQU    BGUI_MB+665    ; Enable broker.
  1227. CM_DISABLEBROKER    EQU    BGUI_MB+666    ; Disable broker.
  1228.  
  1229. CM_MSGINFO        EQU    BGUI_MB+667
  1230.  
  1231. ** Obtain info from a CxMsg. **
  1232.    STRUCTURE    cmMsgInfo,MethodID_SIZEOF  ; CM_MSGINFO
  1233.     ULONG    cmi_InfoType        ; Storage for CxMsgType() result.
  1234.     ULONG    cmi_InfoID        ; Storage for CxMsgID() result.
  1235.     ULONG    cmi_InfoData        ; Storage for CxMsgData() result.
  1236.    LABEL    cmMsgInfo_SIZEOF
  1237.  
  1238. ** Possible CM_MSGINFO return codes. **
  1239. CMMI_NOMORE    EQU    $FFFFFFFF    ; No more messages.
  1240.  
  1241. ** BGUI_MB+668 until BGUI_MB+700 reserved.
  1242.  
  1243. **
  1244. **    CM_ADDHOTKEY error codes obtainable using
  1245. **    the COMM_ErrorCode attribute.
  1246. **
  1247. CMERR_OK        EQU    0    ; OK. No problems.
  1248. CMERR_NO_MEMORY         EQU    1    ; Out of memory.
  1249. CMERR_KEYID_IN_USE    EQU    2    ; Key ID already used.
  1250. CMERR_KEY_CREATION    EQU    3    ; Key creation failure.
  1251. CMERR_CXOBJERROR    EQU    4    ; CxObjError() reported failure.
  1252.  
  1253. ******************************************************************************
  1254. **
  1255. **    "filereqclass.c" - BOOPSI Asl filerequester class.
  1256. **
  1257. FRQ_Drawer        EQU    BGUI_TB+1941    ; --G--
  1258. FRQ_File        EQU    BGUI_TB+1942    ; --G--
  1259. FRQ_Pattern        EQU    BGUI_TB+1943    ; --G--
  1260. FRQ_Path        EQU    BGUI_TB+1944    ; --G--
  1261. FRQ_Left        EQU    BGUI_TB+1945    ; --G--
  1262. FRQ_Top                 EQU    BGUI_TB+1946    ; --G--
  1263. FRQ_Width        EQU    BGUI_TB+1947    ; --G--
  1264. FRQ_Height        EQU    BGUI_TB+1948    ; --G--
  1265. **
  1266. **    In addition to the above defined attributes are all
  1267. **    ASL filerequester attributes ISG-U.
  1268. **
  1269.  
  1270. ** BGUI_TB+1949 until BGUI_TB+2020 reserved.
  1271.  
  1272. **
  1273. **    Error codes which the SetAttrs() and DoMethod()
  1274. **    call's can return.
  1275. **
  1276. FRQ_OK            EQU    0    ; OK. No problems.
  1277. FRQ_CANCEL        EQU    1    ; The requester was cancelled.
  1278. FRQ_ERROR_NO_MEM    EQU    2    ; Out of memory.
  1279. FRQ_ERROR_NO_FREQ    EQU    3    ; Unable to allocate a requester.
  1280.  
  1281. ** New Methods **
  1282.  
  1283. FRM_DOREQUEST        EQU    BGUI_MB+701    ; Show Requester.
  1284.  
  1285. ** BGUI_MB+702 until BGUI_MB+740 reserved.
  1286.  
  1287.     ENDC    ; LIBRARIES_BGUI_I
  1288.